package com.bitao.system.domain.sysuser.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bitao.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created with IntelliJ IDEA.
 * Description: 管理员用户属性x
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2025-05-15  17:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_sys_user")
public class SysUser extends BaseEntity {

    /**
     * 通过雪花算法来生成主键ID、避免自增主键带来的弊端
     * 主键ID、账号、密码
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long userId;

    private String userAccount;

    private String password;

    private String nickName;

}
